/*     */ package com.zimbra.cs.account.ldap.upgrade;
/*     */ 
/*     */ import com.zimbra.common.service.ServiceException;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public enum UpgradeTask
/*     */ {
/*  23 */   BUG_11562(BUG_11562.class), 
/*  24 */   BUG_14531(BUG_14531.class), 
/*  25 */   BUG_18277(BUG_18277.class), 
/*  26 */   BUG_22033(BUG_22033.class), 
/*  27 */   BUG_27075(BUG_27075.class), 
/*  28 */   BUG_29978(BUG_29978.class), 
/*     */   
/*  30 */   BUG_31694(BUG_31694.class), 
/*  31 */   BUG_32557(BUG_32557.class), 
/*  32 */   BUG_32719(BUG_32719.class), 
/*  33 */   BUG_33814(BUG_33814.class), 
/*  34 */   BUG_41000(BUG_41000.class), 
/*  35 */   BUG_42828(BUG_42828.class), 
/*  36 */   BUG_42877(BUG_42877.class), 
/*  37 */   BUG_42896(BUG_42896.class), 
/*  38 */   BUG_43147(BUG_43147.class), 
/*  39 */   BUG_43779(BUG_43779.class), 
/*  40 */   BUG_46297(BUG_46297.class), 
/*  41 */   BUG_46883(BUG_46883.class), 
/*  42 */   BUG_46961(BUG_46961.class), 
/*  43 */   BUG_47934(BUG_47934.class), 
/*  44 */   BUG_50258(BUG_50258.class), 
/*  45 */   BUG_50458(BUG_50458.class), 
/*  46 */   BUG_50465(BUG_50465.class), 
/*  47 */   BUG_53745(BUG_53745.class), 
/*  48 */   BUG_55649(BUG_55649.class), 
/*  49 */   BUG_57039(BUG_57039.class), 
/*  50 */   BUG_57205(BUG_57205.class), 
/*  51 */   BUG_57425(BUG_57425.class), 
/*  52 */   BUG_57855(BUG_57855.class), 
/*  53 */   BUG_57866(BUG_57866.class), 
/*  54 */   BUG_57875(BUG_57875.class), 
/*  55 */   BUG_58084(BUG_58084.class), 
/*  56 */   BUG_58481(BUG_58481.class), 
/*  57 */   BUG_58514(BUG_58514.class), 
/*  58 */   BUG_59720(BUG_59720.class), 
/*  59 */   BUG_60640(BUG_60640.class), 
/*  60 */   BUG_63475(BUG_63475.class), 
/*  61 */   BUG_63722(BUG_63722.class), 
/*  62 */   BUG_64380(BUG_64380_63587.class), 
/*  63 */   BUG_65070(BUG_65070.class), 
/*  64 */   BUG_66001(BUG_66001.class), 
/*  65 */   BUG_66387(BUG_66387.class), 
/*  66 */   BUG_67237(BUG_67237.class), 
/*  67 */   BUG_68190(BUG_68190.class), 
/*  68 */   BUG_68394(BUG_68394.class), 
/*  69 */   BUG_68831(BUG_68831.class), 
/*  70 */   BUG_68891(BUG_68891.class), 
/*  71 */   BUG_72007(BUG_72007.class), 
/*  72 */   BUG_75450(BUG_75450.class), 
/*  73 */   BUG_75650(BUG_75650.class), 
/*  74 */   BUG_76427(BUG_76427.class), 
/*  75 */   BUG_81385(BUG_81385.class), 
/*  76 */   BUG_85224(BUG_85224.class), 
/*  77 */   BUG_87674(BUG_87674.class), 
/*  78 */   BUG_88098(BUG_88098.class), 
/*  79 */   BUG_88766(BUG_88766.class);
/*     */   
/*     */   private static final String NAME_PREFIX = "BUG_";
/*     */   private Class<? extends UpgradeOp> upgradeOpClass;
/*     */   
/*     */   private UpgradeTask(Class<? extends UpgradeOp> upgradeOpClass)
/*     */   {
/*  86 */     this.upgradeOpClass = upgradeOpClass;
/*     */   }
/*     */   
/*     */   UpgradeOp getUpgradeOp() throws ServiceException {
/*     */     try {
/*  91 */       return (UpgradeOp)this.upgradeOpClass.newInstance();
/*     */     } catch (IllegalAccessException e) {
/*  93 */       throw ServiceException.FAILURE("IllegalAccessException: " + this.upgradeOpClass.getCanonicalName(), e);
/*     */     } catch (InstantiationException e) {
/*  95 */       throw ServiceException.FAILURE("InstantiationException: " + this.upgradeOpClass.getCanonicalName(), e);
/*     */     }
/*     */   }
/*     */   
/*     */   static UpgradeTask getTaskByBug(String bugNumber) throws ServiceException {
/* 100 */     String bug = "BUG_" + bugNumber;
/*     */     try
/*     */     {
/* 103 */       return valueOf(bug);
/*     */     } catch (IllegalArgumentException e) {}
/* 105 */     return null;
/*     */   }
/*     */   
/*     */ 
/*     */   public String getBug()
/*     */   {
/* 111 */     return name().substring("BUG_".length());
/*     */   }
/*     */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/ldap/upgrade/UpgradeTask.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */